extends Node2D


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	GameUtiles.player_bag = {}
	GameUtiles.ingredients = []
	GameUtiles.move_allow = false
	$black.show()
	SeManager.play_boom()
	await get_tree().create_timer(4.0).timeout
	$black.hide()
	
	DialogueManager.show_dialogue_balloon(load("res://dialogues/dia_in_levels/l4_start.dialogue"),"start")

	



func _on_body_entered(body: Node2D) -> void:
	if body.name =="player" and GameUtiles.move_allow:
		print("4.5to5")
		get_tree().change_scene_to_file("res://scenes/level_5.tscn")
